<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/publishSetting',
    'namespace' => 'Frieza\\Modules\\PublishSetting\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    // 发布器默认文案
    $router->get('/publisher/index', 'PublisherController@index');
    $router->post('/publisher/index/save', 'PublisherController@save');

    $router->get('/diaryStage/index', 'DiaryStageController@index');//列表页
    $router->get('/diaryStage/index/create', 'DiaryStageController@edit');//添加页面
    $router->get('/diaryStage/index/{id}/edit', 'DiaryStageController@edit');//修改页面
    $router->post('/diaryStage/index/save', 'DiaryStageController@save');//添加或修改操作
    $router->delete('/diaryStage/index/{id}', 'DiaryStageController@del');//删除

    $router->get('/diaryStage/stage', 'DiaryStageController@stage')->name('diaryStage.stage');
});